<script setup>
import {ref} from "vue"
import getImages from '../api/getImage.js'
const imageData = ref("")
const urlParams = new URLSearchParams(window.location.search);
const param = ref("");
param.value = urlParams.get("src") ;
const props =  defineProps({
    value:String
})
console.log(props.value)
if(param.value == undefined)
{
    param.value = props.value;
}

getImages(param.value).then(
function(response){
if(response.status == 200)
imageData.value = response.data 
})




</script>

<template>
<img :src="imageData" style="width: 100%;">
</template>

